<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>Boolean | JavaScript高级讲义</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../Sources/string.html" />
    
    
    <link rel="prev" href="../Sources/number.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="1.2.4"
        data-chapter-title="Boolean"
        data-filepath="Sources/boolean.md"
        data-basepath=".."
        data-revision="Tue Oct 18 2016 20:46:48 GMT+0800 (CST)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        JavaScript高级讲义
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="0.1" data-path="Sources/内容简介.html">
            
                
                    <a href="../Sources/内容简介.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>0.1.</b>
                        
                        内容简介
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1" >
            
            <span><b>1.</b> JavaScript基础知识复习</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="Sources/基础复习题.html">
            
                
                    <a href="../Sources/基础复习题.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        基础复习题
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
            <span><b>1.2.</b> 内置对象与方法</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="Sources/array.html">
            
                
                    <a href="../Sources/array.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.1.</b>
                        
                        Array
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="Sources/date.html">
            
                
                    <a href="../Sources/date.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.2.</b>
                        
                        Date
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="Sources/number.html">
            
                
                    <a href="../Sources/number.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.3.</b>
                        
                        Number
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="1.2.4" data-path="Sources/boolean.html">
            
                
                    <a href="../Sources/boolean.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.4.</b>
                        
                        Boolean
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="Sources/string.html">
            
                
                    <a href="../Sources/string.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.5.</b>
                        
                        String
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="Sources/math.html">
            
                
                    <a href="../Sources/math.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.6.</b>
                        
                        Math
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="Sources/值类型和引用类型.html">
            
                
                    <a href="../Sources/值类型和引用类型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        值类型和引用类型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="Sources/值类型和引用类型的特征.html">
            
                
                    <a href="../Sources/值类型和引用类型的特征.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        值类型和引用类型的特征
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="Sources/对象的动态特性.html">
            
                
                    <a href="../Sources/对象的动态特性.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        对象的动态特性
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="Sources/dom操作复习.html">
            
                
                    <a href="../Sources/dom操作复习.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        DOM操作复习
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="Sources/异常处理.html">
            
                
                    <a href="../Sources/异常处理.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        异常处理
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="Sources/调试工具的使用.html">
            
                
                    <a href="../Sources/调试工具的使用.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        调试工具的使用
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >JavaScript高级讲义</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="boolean&#x5BF9;&#x8C61;">Boolean&#x5BF9;&#x8C61;</h1>
<h2 id="boolean-&#x5BF9;&#x8C61;&#x65B9;&#x6CD5;">Boolean &#x5BF9;&#x8C61;&#x65B9;&#x6CD5;</h2>
<table>
<thead>
<tr>
<th>&#x65B9;&#x6CD5;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>toString()</td>
<td>&#x628A;&#x903B;&#x8F91;&#x503C;&#x8F6C;&#x6362;&#x4E3A;&#x5B57;&#x7B26;&#x4E32;&#xFF0C;&#x5E76;&#x8FD4;&#x56DE;&#x7ED3;&#x679C;&#x3002;</td>
</tr>
<tr>
<td>valueOf()</td>
<td>&#x8FD4;&#x56DE; Boolean &#x5BF9;&#x8C61;&#x7684;&#x539F;&#x59CB;&#x503C;&#x3002;</td>
</tr>
</tbody>
</table>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../Sources/number.html" class="navigation navigation-prev " aria-label="Previous page: Number"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../Sources/string.html" class="navigation navigation-next " aria-label="Next page: String"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
